package com.fuyao.cloud.personnel.library.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fuyao.cloud.common.biz.entity.AuditableEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@TableName("fy_library_apply_book")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "借阅书籍")
public class ApplyBook extends AuditableEntity {

    /**
     * 借阅申请单 ID
     */
    private Long bookApplyId;

    /**
     * 书籍 ID
     */
    private Long bookId;

    /**
     * 借阅日期
     */
    private String borrowDateTime;
    /**
     * 归还日期
     */
    private String returnDateTime;

    @ApiModelProperty("借阅状态（0：未归还、1：已归还）")
    private Integer status;


    @TableField(exist = false)
    private String bookNumber;
    @TableField(exist = false)
    private String bookCode;
    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private String author;
    @TableField(exist = false)
    private String publishDate;
    @TableField(exist = false)
    private String catalogCode;
    @TableField(exist = false)
    private Long catalogId;
}
